package br.edu.unilasalle.simon_api.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.edu.unilasalle.simon_api.dao.IFuncionarioDao;
import br.edu.unilasalle.simon_api.dao.IGenericDao;
import br.edu.unilasalle.simon_api.domain.Funcionario;
import br.edu.unilasalle.simon_api.service.IFuncionarioService;

@Service
public class FuncionarioService extends GenericService<Funcionario, Long> implements IFuncionarioService {
	
	@Autowired
	private IFuncionarioDao dao;
	
	public IFuncionarioDao getFuncionarioDao() {
		return dao;
	}
	
	public void setFuncionarioDao(IFuncionarioDao dao) {
		this.dao = dao;
	}

	@Override
	public IGenericDao<Funcionario, Long> getEntityDao() {
		return this.dao;
	}
    
	@Override
	public List<Funcionario> findAllFuncionario() {
		return this.dao.findAllFuncionario();
	}
	
}
